/**
 * Syg at 18.03.2013 for Pikovskii
 */
package intf.impl;

import java.util.List;

import intf.ILevel;
import intf.IPLine;
import intf.IResult;
import intf.ICircle;

/**
 * @author Syg
 *
 */
public class ResultImpl implements IResult
{

	private IPLine m_border;
	private List<ILevel> m_levels;
	private List<ICircle> m_circles;

	/* (non-Javadoc)
	 * @see intf.IBorder#getBorder()
	 */
	@Override
	public IPLine getBorder()
	{
		return m_border;
	}

	/* (non-Javadoc)
	 * @see intf.IResult#levelCount()
	 */
	@Override
	public int levelCount()
	{
		return m_levels.size();
	}

	/* (non-Javadoc)
	 * @see intf.IResult#getLevel(int)
	 */
	@Override
	public ILevel getLevel( int index )
	{
		return m_levels.get(index);
	}

	/* (non-Javadoc)
	 * @see intf.IResult#circleCount()
	 */
	@Override
	public int circleCount()
	{
		return m_circles.size();
	}

	/* (non-Javadoc)
	 * @see intf.IResult#circle(int)
	 */
	@Override
	public ICircle circle( int index )
	{
		return m_circles.get(index);
	}

}
